/*
package com.example.springexercise.demos.TestDemo.controller;

import org.springframework.web.bind.annotation.*;

// 简单了解RestFul设计风格
@RestController
public class UserController {

    @GetMapping("/user/{id}")
    public String getUserById(@PathVariable int id) {
        System.out.println(id);
        return "根据获取用户信息";
    }
    @PostMapping("/user/save")
    public String save(User user){return "添加用户";}

    @PostMapping("/user/update")
    public String update(User user){return "更新用户";}
    @DeleteMapping("/user/{id}")
    public String deleteById(@PathVariable int id){
        System.out.println(id);
        return "根据ID删除用户";
    }



}
*/
